<?php
/**
 * Created by PhpStorm.
 * User: angl
 * Date: 2016/12/27
 * Time: 15:33
 */

namespace AuctionBack\Logic;


class ConsultLogic
{
    protected $autoCheckFields = false;

    protected $model = null;


    /**
     * 获取磋商成交详情
     * @param $order_id
     * @return mixed
     */
    public static function getDealtByOrderId($order_id)
    {
        $where = [
            'order_id' => $order_id,
            'consult_status' => 4 //磋商成功
        ];
        return D("Consult", "Model")->where($where)->find();
    }
}